﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StyleMVVM.DependencyInjection;
using StyleMVVM.ViewModel;

namespace StyleMVVM.View
{
	public class MessageBoxWindowViewModel : WindowViewModel
	{
		public void ClickHandler(MessageBoxCommand command)
		{
			MessageBoxWindow messageBoxWindow = View as MessageBoxWindow;

			if (messageBoxWindow != null)
			{
				messageBoxWindow.SelectedCommand = command;

				Close();
			}
		}
	}
}